package com.pipayshop.controller;

import com.pipayshop.entity.vo.ResponseVO;
import com.pipayshop.service.OnlineStoreSkuService;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashSet;

/**
 * @author xiaoqiu
 * @date 2024/12/11 17:10
 * @description
 */
@RestController
@RequestMapping("/pipayshopapi/sku")
@Tag(name  = "规格接口",description  = "规格接口")
public class OnlineStoreSkuController {
    @Autowired
    private OnlineStoreSkuService service;
    @ApiOperation(value = "根据分类id展示规格")
    @GetMapping("/listSku/{categoryId}")
    public ResponseVO listCommodity(@PathVariable Integer categoryId){
        return ResponseVO.getSuccessResponseVo(service.listSku(categoryId));
    }


}
